package com.sqx.modules.dataCenter;

import com.sqx.common.utils.Result;
import com.sqx.modules.postPush.service.PostPushService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(value = "数据中心", tags = {"数据中心"})
@RequestMapping(value = "/admin/postPushData/")
public class PostPushDataController {
    @Autowired
    private PostPushService postPushService;

    @ApiOperation("获取数据分析")
    @GetMapping("getPostPushData")
    public Result getPostPushData(String time,String flag) {
        return Result.success().put("data", postPushService.getPostPushData(time,flag));
    }
}
